//
//  BaseDelegate.h
//  AAA
//
//  Created by ifuninfo on 13-5-31.
//  Copyright (c) 2013年 smile. All rights reserved.
//

#import <Foundation/Foundation.h>
@protocol TableViewAction<NSObject>
@optional
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
@end


@protocol AdapterInitProtocol <NSObject>
- (id)initWithList:(NSArray *)data andAdapter:(id)adapter;
@end
@interface BaseAdapter : NSObject<UITableViewDelegate,UITableViewDataSource,AdapterInitProtocol>
{
    NSArray    *_list;
}
@property(nonatomic,assign)id<TableViewAction> tableViewAction;
@property(nonatomic,retain)NSArray *list;
@end
